import { Column, Entity, PrimaryColumn } from "typeorm";

@Entity()
export class Book {
  @PrimaryColumn()
  id: string;

  @Column()
  bookname: string;

  @Column()
  booktype: string;

  @Column()
  author: string;

  @Column()
  translator: string;

  @Column()
  publisher: string;

  @Column()
  publish_time: string;

  @Column()
  price: number;

  @Column()
  stock: number;
}
